package com.example.buildtable.pojo;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(autoResultMap = true)
public class Member {
    @TableId(type = IdType.AUTO)
    private Integer memberId;
    private String memberAccount;
    private String password;
    private String memberRealname;
    private String memberSex;
    private String memberEmail;
    private String memberQq;
    private String memberAddress;
    private String memberPhone;
    @TableField(value = "member_city_id", target = City.class)
    private Integer memberCityId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private City city;
    private Integer memberStatus;
    @TableField(value = "member_shiplevel_id", target = MemberShiplevel.class)
    private Integer memberShiplevelId;
    @TableField(relation = Relation.MANY_TO_MANY)
    private MemberShiplevel memberShiplevel;
    private Integer memberShippoint;
}
